package com.developmentReformProject.enums;

/**
 * 项目类型
 *
 */
public enum ProjectTypeEnum {
    PROJECTTYPE_CAPITAL("1","基础建设类项目"),
    PROJECTTYPE_TECHNOLOGY("2","技术改造项目"),
    PROJECTTYPE_PURCHASE("3","单纯购置项目");

    private String value;
    private String description;

    public String getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    private ProjectTypeEnum( String value, String description ) {
        this.value = value;
        this.description = description;
    }

    /**
     * 值转化描述
     */
    public static String valueToDESC( String value ) {
        for (ProjectTypeEnum projectTypeEnum : ProjectTypeEnum.values()) {
            if (value.equals(projectTypeEnum.getValue())) {
                return projectTypeEnum.getDescription();
            }
        }
        return null;
    }
}
